<template>
  <div>
    <h4>案例-求和</h4>
    <hr />

    <!-- 发送请求 -->
    <button @click="fn">发送请求获取数据</button>
  </div>
</template>

<script>
export default {
  methods: {
    async fn() {
      const data = await this.$store.commit('GET_MOVIE')
      console.log(data)
    }
  }
}
</script>

<style lang="less" scoped></style>
